import 'package:flutter/material.dart';

class EmptyTodoListWidget extends StatelessWidget {
  final String collectId;

  const EmptyTodoListWidget({Key key, this.collectId}): super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: InkWell(
        onTap: () => Navigator.of(context).pushNamed("/AddTodoPage", arguments: [collectId]),
        child: Container(
          alignment: Alignment.center,
          decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(6.0),
              color: Colors.white,
              border: Border.all(color: Colors.black)),
          height: Theme.of(context).buttonTheme.height,
          width: Theme.of(context).buttonTheme.minWidth,
          child: Text("添加计划"),
        ),
      ),
    );
  }
}
